package cn.itsource.ymcc.feignclient;

import cn.itsource.ymcc.factory.CourseMarketFallbackFactory;
import cn.itsource.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-course",fallbackFactory = CourseMarketFallbackFactory.class)
public interface CourseMarketFileFeignClient {

    @RequestMapping(value = "/courseMarket/{id}",method = RequestMethod.GET)
    public JSONResult get(@PathVariable("id")Long id);

}
